package com.itheima.day05.producer;


import com.itheima.day05.entity.User;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RegistrationProducer {

    @Autowired
    private RabbitTemplate rabbitTemplate;

    public void sendRegistrationNotification(User user) {
        //TODO 发送User对象

        System.out.println("Sent registration notification for user: " + user.getUsername());
    }
}